import { http } from "@/utils/http";

/** 项目列表 */
export const itemList = (data?: object) => {
  return http.request<any>("post", "api/organization/project/index", { data });
};
/** 项目编辑回显 */
export const showinfo = (data?: object) => {
  return http.request<any>("post", "api/organization/project/edit", { data });
};
/** 项目添加 编辑 */
export const addItem = (data?: object) => {
  return http.request<any>("post", "api/organization/project/add", { data });
};

/** 项目管理-下架 */
export const delItem = (data?: object) => {
  return http.request<any>("post", "api/organization/project/del", { data });
};

/** 项目管理-恢复 */
export const backItem = (data?: object) => {
  return http.request<any>("post", "api/organization/project/back", { data });
};
/** 公司下其他项目 */
export const otherItem = (data?: object) => {
  return http.request<any>("post", "api/organization/project/company", { data });
};
/** 组织架构-树形菜单 */
export const compList = (data?: object) => {
  return http.request<any>("post", "api/organization/index/index", { data });
};
// // url拼接传参
// export const textRequest = (params?: object) => {
//   return http.request("get", "/xxx?message=" + params);
// };
